package db

const TableNameNoticeTemplate = TablePrefix + "notice_template"

type NoticeTemplate struct {
	BaseModel
	Name string `gorm:"column:name;type:varchar(11);default:'';comment:模板名称" json:"name" form:"name"` // 模板名称
}

func (*NoticeTemplate) TableName() string {
	return TableNameNoticeTemplate
}

type NoticeTemplateHasManReward struct {
	NoticeTemplate
	Reward []NoticeTemplateRewardHasOneType `gorm:"foreignKey:TID;references:ID" json:"reward"`
}
